﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WPF101_GetStarted
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    /// 
    public partial class GetStarted : Window
    {
        public GetStarted()
        {
            InitializeComponent();

            Person person = new Person();
            this.DataContext = person;
        }

        private void button_Click(object sender, RoutedEventArgs e)
        {
            // Show message box when button is clicked
            MessageBox.Show("Hello, Windows Presentation Foundation!");

            FlowDoc flow = new FlowDoc();
            flow.ShowDialog();
        }

        private void clickableEllipse_MouseUp(object sender, MouseButtonEventArgs e)
        {
            // Display a message
            MessageBox.Show("You clicked the ellipse!");

            DataTpl tpl = new DataTpl();
            tpl.Show();
        }
    }

    public class Person
    {
        private string name = "No Name";
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
    }
}
